3.228 \(\int \frac{(a+b \log (c (d+e x)^n))^2}{(f+g x) (h+i x)^2} \, dx\)

Optimal. Leaf size=427 \[ \frac{2 b g n \text{PolyLog}\left (2,-\frac{g (d+e x)}{e f-d g}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{(g h-f i)^2}-\frac{2 b g n \text{PolyLog}\left (2,-\frac{i (d+e x)}{e h-d i}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{(g h-f i)^2}+\frac{2 b^2 e n^2 \text{PolyLog}\left (2,-\frac{i (d+e x)}{e h-d i}\right )}{(e h-d i) (g h-f i)}-\frac{2 b^2 g n^2 \text{PolyLog}\left (3,-\frac{g (d+e x)}{e f-d g}\right )}{(g h-f i)^2}+\frac{2 b^2 g n^2 \text{PolyLog}\left (3,-\frac{i (d+e x)}{e h-d i}\right )}{(g h-f i)^2}+\frac{2 b e n \log \left (\frac{e (h+i x)}{e h-d i}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{(e h-d i) (g h-f i)}-\frac{i (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{(h+i x) (e h-d i) (g h-f i)}+\frac{g \log \left (\frac{e (f+g x)}{e f-d g}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{(g h-f i)^2}-\frac{g \log \left (\frac{e (h+i x)}{e h-d i}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{(g h-f i)^2} \]

[Out]

-((i*(d + e*x)*(a + b*Log[c*(d + e*x)^n])^2)/((e*h - d*i)*(g*h - f*i)*(h + i*x))) + (g*(a + b*Log[c*(d + e*x)^
n])^2*Log[(e*(f + g*x))/(e*f - d*g)])/(g*h - f*i)^2 + (2*b*e*n*(a + b*Log[c*(d + e*x)^n])*Log[(e*(h + i*x))/(e
*h - d*i)])/((e*h - d*i)*(g*h - f*i)) - (g*(a + b*Log[c*(d + e*x)^n])^2*Log[(e*(h + i*x))/(e*h - d*i)])/(g*h -
 f*i)^2 + (2*b*g*n*(a + b*Log[c*(d + e*x)^n])*PolyLog[2, -((g*(d + e*x))/(e*f - d*g))])/(g*h - f*i)^2 + (2*b^2
*e*n^2*PolyLog[2, -((i*(d + e*x))/(e*h - d*i))])/((e*h - d*i)*(g*h - f*i)) - (2*b*g*n*(a + b*Log[c*(d + e*x)^n
])*PolyLog[2, -((i*(d + e*x))/(e*h - d*i))])/(g*h - f*i)^2 - (2*b^2*g*n^2*PolyLog[3, -((g*(d + e*x))/(e*f - d*
g))])/(g*h - f*i)^2 + (2*b^2*g*n^2*PolyLog[3, -((i*(d + e*x))/(e*h - d*i))])/(g*h - f*i)^2

________________________________________________________________________________________

Rubi [A]  time = 0.490768, antiderivative size = 427, normalized size of antiderivative = 1., number of steps used = 14, number of rules used = 9, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.29, Rules used = {2418, 2396, 2433, 2374, 6589, 2397, 2394, 2393, 2391} \[ \frac{2 b g n \text{PolyLog}\left (2,-\frac{g (d+e x)}{e f-d g}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{(g h-f i)^2}-\frac{2 b g n \text{PolyLog}\left (2,-\frac{i (d+e x)}{e h-d i}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{(g h-f i)^2}+\frac{2 b^2 e n^2 \text{PolyLog}\left (2,-\frac{i (d+e x)}{e h-d i}\right )}{(e h-d i) (g h-f i)}-\frac{2 b^2 g n^2 \text{PolyLog}\left (3,-\frac{g (d+e x)}{e f-d g}\right )}{(g h-f i)^2}+\frac{2 b^2 g n^2 \text{PolyLog}\left (3,-\frac{i (d+e x)}{e h-d i}\right )}{(g h-f i)^2}+\frac{2 b e n \log \left (\frac{e (h+i x)}{e h-d i}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{(e h-d i) (g h-f i)}-\frac{i (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{(h+i x) (e h-d i) (g h-f i)}+\frac{g \log \left (\frac{e (f+g x)}{e f-d g}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{(g h-f i)^2}-\frac{g \log \left (\frac{e (h+i x)}{e h-d i}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{(g h-f i)^2} \]

Antiderivative was successfully verified.

[In]

Int[(a + b*Log[c*(d + e*x)^n])^2/((f + g*x)*(h + i*x)^2),x]

[Out]

-((i*(d + e*x)*(a + b*Log[c*(d + e*x)^n])^2)/((e*h - d*i)*(g*h - f*i)*(h + i*x))) + (g*(a + b*Log[c*(d + e*x)^
n])^2*Log[(e*(f + g*x))/(e*f - d*g)])/(g*h - f*i)^2 + (2*b*e*n*(a + b*Log[c*(d + e*x)^n])*Log[(e*(h + i*x))/(e
*h - d*i)])/((e*h - d*i)*(g*h - f*i)) - (g*(a + b*Log[c*(d + e*x)^n])^2*Log[(e*(h + i*x))/(e*h - d*i)])/(g*h -
 f*i)^2 + (2*b*g*n*(a + b*Log[c*(d + e*x)^n])*PolyLog[2, -((g*(d + e*x))/(e*f - d*g))])/(g*h - f*i)^2 + (2*b^2
*e*n^2*PolyLog[2, -((i*(d + e*x))/(e*h - d*i))])/((e*h - d*i)*(g*h - f*i)) - (2*b*g*n*(a + b*Log[c*(d + e*x)^n
])*PolyLog[2, -((i*(d + e*x))/(e*h - d*i))])/(g*h - f*i)^2 - (2*b^2*g*n^2*PolyLog[3, -((g*(d + e*x))/(e*f - d*
g))])/(g*h - f*i)^2 + (2*b^2*g*n^2*PolyLog[3, -((i*(d + e*x))/(e*h - d*i))])/(g*h - f*i)^2

Rule 2418

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*(RFx_), x_Symbol] :> With[{u = ExpandIntegrand[
(a + b*Log[c*(d + e*x)^n])^p, RFx, x]}, Int[u, x] /; SumQ[u]] /; FreeQ[{a, b, c, d, e, n}, x] && RationalFunct
ionQ[RFx, x] && IntegerQ[p]

Rule 2396

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_)/((f_.) + (g_.)*(x_)), x_Symbol] :> Simp[(Log[(e*
(f + g*x))/(e*f - d*g)]*(a + b*Log[c*(d + e*x)^n])^p)/g, x] - Dist[(b*e*n*p)/g, Int[(Log[(e*(f + g*x))/(e*f -
d*g)]*(a + b*Log[c*(d + e*x)^n])^(p - 1))/(d + e*x), x], x] /; FreeQ[{a, b, c, d, e, f, g, n, p}, x] && NeQ[e*
f - d*g, 0] && IGtQ[p, 1]

Rule 2433

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((f_.) + Log[(h_.)*((i_.) + (j_.)*(x_))^(m_.)]*
(g_.))*((k_.) + (l_.)*(x_))^(r_.), x_Symbol] :> Dist[1/e, Subst[Int[((k*x)/d)^r*(a + b*Log[c*x^n])^p*(f + g*Lo
g[h*((e*i - d*j)/e + (j*x)/e)^m]), x], x, d + e*x], x] /; FreeQ[{a, b, c, d, e, f, g, h, i, j, k, l, n, p, r},
 x] && EqQ[e*k - d*l, 0]

Rule 2374

Int[(Log[(d_.)*((e_) + (f_.)*(x_)^(m_.))]*((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.))/(x_), x_Symbol] :> -Sim
p[(PolyLog[2, -(d*f*x^m)]*(a + b*Log[c*x^n])^p)/m, x] + Dist[(b*n*p)/m, Int[(PolyLog[2, -(d*f*x^m)]*(a + b*Log
[c*x^n])^(p - 1))/x, x], x] /; FreeQ[{a, b, c, d, e, f, m, n}, x] && IGtQ[p, 0] && EqQ[d*e, 1]

Rule 6589

Int[PolyLog[n_, (c_.)*((a_.) + (b_.)*(x_))^(p_.)]/((d_.) + (e_.)*(x_)), x_Symbol] :> Simp[PolyLog[n + 1, c*(a
+ b*x)^p]/(e*p), x] /; FreeQ[{a, b, c, d, e, n, p}, x] && EqQ[b*d, a*e]

Rule 2397

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_)/((f_.) + (g_.)*(x_))^2, x_Symbol] :> Simp[((d +
e*x)*(a + b*Log[c*(d + e*x)^n])^p)/((e*f - d*g)*(f + g*x)), x] - Dist[(b*e*n*p)/(e*f - d*g), Int[(a + b*Log[c*
(d + e*x)^n])^(p - 1)/(f + g*x), x], x] /; FreeQ[{a, b, c, d, e, f, g, n}, x] && NeQ[e*f - d*g, 0] && GtQ[p, 0
]

Rule 2394

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))/((f_.) + (g_.)*(x_)), x_Symbol] :> Simp[(Log[(e*(f +
g*x))/(e*f - d*g)]*(a + b*Log[c*(d + e*x)^n]))/g, x] - Dist[(b*e*n)/g, Int[Log[(e*(f + g*x))/(e*f - d*g)]/(d +
 e*x), x], x] /; FreeQ[{a, b, c, d, e, f, g, n}, x] && NeQ[e*f - d*g, 0]

Rule 2393

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))]*(b_.))/((f_.) + (g_.)*(x_)), x_Symbol] :> Dist[1/g, Subst[Int[(a +
 b*Log[1 + (c*e*x)/g])/x, x], x, f + g*x], x] /; FreeQ[{a, b, c, d, e, f, g}, x] && NeQ[e*f - d*g, 0] && EqQ[g
 + c*(e*f - d*g), 0]

Rule 2391

Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> -Simp[PolyLog[2, -(c*e*x^n)]/n, x] /; FreeQ[{c, d,
 e, n}, x] && EqQ[c*d, 1]

Rubi steps

\begin{align*} \int \frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{(h+228 x)^2 (f+g x)} \, dx &=\int \left (\frac{228 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{(228 f-g h) (h+228 x)^2}-\frac{228 g \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{(228 f-g h)^2 (h+228 x)}+\frac{g^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{(228 f-g h)^2 (f+g x)}\right ) \, dx\\ &=-\frac{(228 g) \int \frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{h+228 x} \, dx}{(228 f-g h)^2}+\frac{g^2 \int \frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{f+g x} \, dx}{(228 f-g h)^2}+\frac{228 \int \frac{\left (a+b \log \left (c (d+e x)^n\right )\right )^2}{(h+228 x)^2} \, dx}{228 f-g h}\\ &=-\frac{228 (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{(228 d-e h) (228 f-g h) (h+228 x)}-\frac{g \log \left (-\frac{e (h+228 x)}{228 d-e h}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{(228 f-g h)^2}+\frac{g \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (\frac{e (f+g x)}{e f-d g}\right )}{(228 f-g h)^2}+\frac{(2 b e g n) \int \frac{\log \left (\frac{e (h+228 x)}{-228 d+e h}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{d+e x} \, dx}{(228 f-g h)^2}-\frac{(2 b e g n) \int \frac{\left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac{e (f+g x)}{e f-d g}\right )}{d+e x} \, dx}{(228 f-g h)^2}+\frac{(456 b e n) \int \frac{a+b \log \left (c (d+e x)^n\right )}{h+228 x} \, dx}{(228 d-e h) (228 f-g h)}\\ &=\frac{2 b e n \log \left (-\frac{e (h+228 x)}{228 d-e h}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{(228 d-e h) (228 f-g h)}-\frac{228 (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{(228 d-e h) (228 f-g h) (h+228 x)}-\frac{g \log \left (-\frac{e (h+228 x)}{228 d-e h}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{(228 f-g h)^2}+\frac{g \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (\frac{e (f+g x)}{e f-d g}\right )}{(228 f-g h)^2}+\frac{(2 b g n) \operatorname{Subst}\left (\int \frac{\left (a+b \log \left (c x^n\right )\right ) \log \left (\frac{e \left (\frac{-228 d+e h}{e}+\frac{228 x}{e}\right )}{-228 d+e h}\right )}{x} \, dx,x,d+e x\right )}{(228 f-g h)^2}-\frac{(2 b g n) \operatorname{Subst}\left (\int \frac{\left (a+b \log \left (c x^n\right )\right ) \log \left (\frac{e \left (\frac{e f-d g}{e}+\frac{g x}{e}\right )}{e f-d g}\right )}{x} \, dx,x,d+e x\right )}{(228 f-g h)^2}-\frac{\left (2 b^2 e^2 n^2\right ) \int \frac{\log \left (\frac{e (h+228 x)}{-228 d+e h}\right )}{d+e x} \, dx}{(228 d-e h) (228 f-g h)}\\ &=\frac{2 b e n \log \left (-\frac{e (h+228 x)}{228 d-e h}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{(228 d-e h) (228 f-g h)}-\frac{228 (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{(228 d-e h) (228 f-g h) (h+228 x)}-\frac{g \log \left (-\frac{e (h+228 x)}{228 d-e h}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{(228 f-g h)^2}+\frac{g \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (\frac{e (f+g x)}{e f-d g}\right )}{(228 f-g h)^2}+\frac{2 b g n \left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_2\left (-\frac{g (d+e x)}{e f-d g}\right )}{(228 f-g h)^2}-\frac{2 b g n \left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_2\left (\frac{228 (d+e x)}{228 d-e h}\right )}{(228 f-g h)^2}-\frac{\left (2 b^2 g n^2\right ) \operatorname{Subst}\left (\int \frac{\text{Li}_2\left (-\frac{g x}{e f-d g}\right )}{x} \, dx,x,d+e x\right )}{(228 f-g h)^2}+\frac{\left (2 b^2 g n^2\right ) \operatorname{Subst}\left (\int \frac{\text{Li}_2\left (-\frac{228 x}{-228 d+e h}\right )}{x} \, dx,x,d+e x\right )}{(228 f-g h)^2}-\frac{\left (2 b^2 e n^2\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{228 x}{-228 d+e h}\right )}{x} \, dx,x,d+e x\right )}{(228 d-e h) (228 f-g h)}\\ &=\frac{2 b e n \log \left (-\frac{e (h+228 x)}{228 d-e h}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{(228 d-e h) (228 f-g h)}-\frac{228 (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{(228 d-e h) (228 f-g h) (h+228 x)}-\frac{g \log \left (-\frac{e (h+228 x)}{228 d-e h}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{(228 f-g h)^2}+\frac{g \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \log \left (\frac{e (f+g x)}{e f-d g}\right )}{(228 f-g h)^2}+\frac{2 b g n \left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_2\left (-\frac{g (d+e x)}{e f-d g}\right )}{(228 f-g h)^2}+\frac{2 b^2 e n^2 \text{Li}_2\left (\frac{228 (d+e x)}{228 d-e h}\right )}{(228 d-e h) (228 f-g h)}-\frac{2 b g n \left (a+b \log \left (c (d+e x)^n\right )\right ) \text{Li}_2\left (\frac{228 (d+e x)}{228 d-e h}\right )}{(228 f-g h)^2}-\frac{2 b^2 g n^2 \text{Li}_3\left (-\frac{g (d+e x)}{e f-d g}\right )}{(228 f-g h)^2}+\frac{2 b^2 g n^2 \text{Li}_3\left (\frac{228 (d+e x)}{228 d-e h}\right )}{(228 f-g h)^2}\\ \end{align*}

Mathematica [A]  time = 0.793132, size = 630, normalized size = 1.48 \[ \frac{-2 b n \left (a+b \log \left (c (d+e x)^n\right )-b n \log (d+e x)\right ) \left (-g (h+i x) (e h-d i) \left (\text{PolyLog}\left (2,\frac{g (d+e x)}{d g-e f}\right )+\log (d+e x) \log \left (\frac{e (f+g x)}{e f-d g}\right )\right )+g (h+i x) (e h-d i) \left (\text{PolyLog}\left (2,\frac{i (d+e x)}{d i-e h}\right )+\log (d+e x) \log \left (\frac{e (h+i x)}{e h-d i}\right )\right )+(g h-f i) (i (d+e x) \log (d+e x)-e (h+i x) \log (h+i x))\right )-b^2 n^2 \left (-g (h+i x) (e h-d i) \left (-2 \text{PolyLog}\left (3,\frac{g (d+e x)}{d g-e f}\right )+2 \log (d+e x) \text{PolyLog}\left (2,\frac{g (d+e x)}{d g-e f}\right )+\log ^2(d+e x) \log \left (\frac{e (f+g x)}{e f-d g}\right )\right )+(g h-f i) \left (\log (d+e x) \left (i (d+e x) \log (d+e x)-2 e (h+i x) \log \left (\frac{e (h+i x)}{e h-d i}\right )\right )-2 e (h+i x) \text{PolyLog}\left (2,\frac{i (d+e x)}{d i-e h}\right )\right )+g (h+i x) (e h-d i) \left (-2 \text{PolyLog}\left (3,\frac{i (d+e x)}{d i-e h}\right )+2 \log (d+e x) \text{PolyLog}\left (2,\frac{i (d+e x)}{d i-e h}\right )+\log ^2(d+e x) \log \left (\frac{e (h+i x)}{e h-d i}\right )\right )\right )+(e h-d i) (g h-f i) \left (a+b \log \left (c (d+e x)^n\right )-b n \log (d+e x)\right )^2+g (h+i x) (e h-d i) \log (f+g x) \left (a+b \log \left (c (d+e x)^n\right )-b n \log (d+e x)\right )^2-g (h+i x) (e h-d i) \log (h+i x) \left (a+b \log \left (c (d+e x)^n\right )-b n \log (d+e x)\right )^2}{(h+i x) (e h-d i) (g h-f i)^2} \]

Antiderivative was successfully verified.

[In]

Integrate[(a + b*Log[c*(d + e*x)^n])^2/((f + g*x)*(h + i*x)^2),x]

[Out]

((e*h - d*i)*(g*h - f*i)*(a - b*n*Log[d + e*x] + b*Log[c*(d + e*x)^n])^2 + g*(e*h - d*i)*(h + i*x)*(a - b*n*Lo
g[d + e*x] + b*Log[c*(d + e*x)^n])^2*Log[f + g*x] - g*(e*h - d*i)*(h + i*x)*(a - b*n*Log[d + e*x] + b*Log[c*(d
 + e*x)^n])^2*Log[h + i*x] - 2*b*n*(a - b*n*Log[d + e*x] + b*Log[c*(d + e*x)^n])*((g*h - f*i)*(i*(d + e*x)*Log
[d + e*x] - e*(h + i*x)*Log[h + i*x]) - g*(e*h - d*i)*(h + i*x)*(Log[d + e*x]*Log[(e*(f + g*x))/(e*f - d*g)] +
 PolyLog[2, (g*(d + e*x))/(-(e*f) + d*g)]) + g*(e*h - d*i)*(h + i*x)*(Log[d + e*x]*Log[(e*(h + i*x))/(e*h - d*
i)] + PolyLog[2, (i*(d + e*x))/(-(e*h) + d*i)])) - b^2*n^2*((g*h - f*i)*(Log[d + e*x]*(i*(d + e*x)*Log[d + e*x
] - 2*e*(h + i*x)*Log[(e*(h + i*x))/(e*h - d*i)]) - 2*e*(h + i*x)*PolyLog[2, (i*(d + e*x))/(-(e*h) + d*i)]) -
g*(e*h - d*i)*(h + i*x)*(Log[d + e*x]^2*Log[(e*(f + g*x))/(e*f - d*g)] + 2*Log[d + e*x]*PolyLog[2, (g*(d + e*x
))/(-(e*f) + d*g)] - 2*PolyLog[3, (g*(d + e*x))/(-(e*f) + d*g)]) + g*(e*h - d*i)*(h + i*x)*(Log[d + e*x]^2*Log
[(e*(h + i*x))/(e*h - d*i)] + 2*Log[d + e*x]*PolyLog[2, (i*(d + e*x))/(-(e*h) + d*i)] - 2*PolyLog[3, (i*(d + e
*x))/(-(e*h) + d*i)])))/((e*h - d*i)*(g*h - f*i)^2*(h + i*x))

________________________________________________________________________________________

Maple [F]  time = 1.826, size = 0, normalized size = 0. \begin{align*} \int{\frac{ \left ( a+b\ln \left ( c \left ( ex+d \right ) ^{n} \right ) \right ) ^{2}}{ \left ( gx+f \right ) \left ( ix+h \right ) ^{2}}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+b*ln(c*(e*x+d)^n))^2/(g*x+f)/(i*x+h)^2,x)

[Out]

int((a+b*ln(c*(e*x+d)^n))^2/(g*x+f)/(i*x+h)^2,x)

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} a^{2}{\left (\frac{g \log \left (g x + f\right )}{g^{2} h^{2} - 2 \, f g h i + f^{2} i^{2}} - \frac{g \log \left (i x + h\right )}{g^{2} h^{2} - 2 \, f g h i + f^{2} i^{2}} + \frac{1}{g h^{2} - f h i +{\left (g h i - f i^{2}\right )} x}\right )} + \int \frac{b^{2} \log \left ({\left (e x + d\right )}^{n}\right )^{2} + b^{2} \log \left (c\right )^{2} + 2 \, a b \log \left (c\right ) + 2 \,{\left (b^{2} \log \left (c\right ) + a b\right )} \log \left ({\left (e x + d\right )}^{n}\right )}{g i^{2} x^{3} + f h^{2} +{\left (2 \, g h i + f i^{2}\right )} x^{2} +{\left (g h^{2} + 2 \, f h i\right )} x}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*(e*x+d)^n))^2/(g*x+f)/(i*x+h)^2,x, algorithm="maxima")

[Out]

a^2*(g*log(g*x + f)/(g^2*h^2 - 2*f*g*h*i + f^2*i^2) - g*log(i*x + h)/(g^2*h^2 - 2*f*g*h*i + f^2*i^2) + 1/(g*h^
2 - f*h*i + (g*h*i - f*i^2)*x)) + integrate((b^2*log((e*x + d)^n)^2 + b^2*log(c)^2 + 2*a*b*log(c) + 2*(b^2*log
(c) + a*b)*log((e*x + d)^n))/(g*i^2*x^3 + f*h^2 + (2*g*h*i + f*i^2)*x^2 + (g*h^2 + 2*f*h*i)*x), x)

________________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{b^{2} \log \left ({\left (e x + d\right )}^{n} c\right )^{2} + 2 \, a b \log \left ({\left (e x + d\right )}^{n} c\right ) + a^{2}}{g i^{2} x^{3} + f h^{2} +{\left (2 \, g h i + f i^{2}\right )} x^{2} +{\left (g h^{2} + 2 \, f h i\right )} x}, x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*(e*x+d)^n))^2/(g*x+f)/(i*x+h)^2,x, algorithm="fricas")

[Out]

integral((b^2*log((e*x + d)^n*c)^2 + 2*a*b*log((e*x + d)^n*c) + a^2)/(g*i^2*x^3 + f*h^2 + (2*g*h*i + f*i^2)*x^
2 + (g*h^2 + 2*f*h*i)*x), x)

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*ln(c*(e*x+d)**n))**2/(g*x+f)/(i*x+h)**2,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (b \log \left ({\left (e x + d\right )}^{n} c\right ) + a\right )}^{2}}{{\left (g x + f\right )}{\left (i x + h\right )}^{2}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*(e*x+d)^n))^2/(g*x+f)/(i*x+h)^2,x, algorithm="giac")

[Out]

integrate((b*log((e*x + d)^n*c) + a)^2/((g*x + f)*(i*x + h)^2), x)